# -*- coding: utf-8 -*-

import wget
from ansible.module_utils.basic import AnsibleModule

def main(rl):
    module = AnsibleModule(
        argument_spec=dict(
            url = dict(required=True,type='str'),
            mudi = dict(required=True,type='str')
        )
    )
    wget.download(module.params['url'],module.params['mudi'])
    module.exit_json(changed=True)

if __name__ == '__main__':
    main()